package com.ysxsoft.wdg.bean.st;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

public class CompanyDetailBean implements Parcelable {

    private String id;
    private String name;
    private String categoryid;
    private int uid;
    private String ID_number;
    private String phone;
    private String map_address;
    private String map;
    private String grade;
    private String content;
    private String account;
    private String money;
    private int status;
    private double lng;
    private double lat;
    private String price;
    private String ID_pic_1;
    private String ID_pic_2;
    private String isPay;
    private String realname;
    private int isshow;
    private String address;
    private String province;
    private String city;
    private String county;
    private String share_pic;
    private String pic;
    private int pid;
    private String desc;
    private double distance;
    private int companyid;
    private int sou;
    private int sold;
    private List<String> qualification;

    public String getId() {
        return id == null ? "" : id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name == null ? "" : name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategoryid() {
        return categoryid == null ? "" : categoryid;
    }

    public void setCategoryid(String categoryid) {
        this.categoryid = categoryid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getID_number() {
        return ID_number == null ? "" : ID_number;
    }

    public void setID_number(String ID_number) {
        this.ID_number = ID_number;
    }

    public String getPhone() {
        return phone == null ? "" : phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMap_address() {
        return map_address == null ? "" : map_address;
    }

    public void setMap_address(String map_address) {
        this.map_address = map_address;
    }

    public String getMap() {
        return map == null ? "" : map;
    }

    public void setMap(String map) {
        this.map = map;
    }

    public String getGrade() {
        return grade == null ? "" : grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getContent() {
        return content == null ? "" : content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAccount() {
        return account == null ? "" : account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getMoney() {
        return money == null ? "" : money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public String getPrice() {
        return price == null ? "" : price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getID_pic_1() {
        return ID_pic_1 == null ? "" : ID_pic_1;
    }

    public void setID_pic_1(String ID_pic_1) {
        this.ID_pic_1 = ID_pic_1;
    }

    public String getID_pic_2() {
        return ID_pic_2 == null ? "" : ID_pic_2;
    }

    public void setID_pic_2(String ID_pic_2) {
        this.ID_pic_2 = ID_pic_2;
    }

    public String getIsPay() {
        return isPay == null ? "" : isPay;
    }

    public void setIsPay(String isPay) {
        this.isPay = isPay;
    }

    public String getRealname() {
        return realname == null ? "" : realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public int getIsshow() {
        return isshow;
    }

    public void setIsshow(int isshow) {
        this.isshow = isshow;
    }

    public String getAddress() {
        return address == null ? "" : address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getProvince() {
        return province == null ? "" : province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city == null ? "" : city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county == null ? "" : county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getShare_pic() {
        return share_pic == null ? "" : share_pic;
    }

    public void setShare_pic(String share_pic) {
        this.share_pic = share_pic;
    }

    public String getPic() {
        return pic == null ? "" : pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getDesc() {
        return desc == null ? "" : desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public double getDistance() {
        return distance;
    }

    public void setDistance(double distance) {
        this.distance = distance;
    }

    public int getCompanyid() {
        return companyid;
    }

    public void setCompanyid(int companyid) {
        this.companyid = companyid;
    }

    public int getSou() {
        return sou;
    }

    public void setSou(int sou) {
        this.sou = sou;
    }

    public int getSold() {
        return sold;
    }

    public void setSold(int sold) {
        this.sold = sold;
    }

    public List<String> getQualification() {
        if (qualification == null) {
            return new ArrayList<>();
        }
        return qualification;
    }

    public void setQualification(List<String> qualification) {
        this.qualification = qualification;
    }

    public static Creator<CompanyDetailBean> getCREATOR() {
        return CREATOR;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.categoryid);
        dest.writeInt(this.uid);
        dest.writeString(this.ID_number);
        dest.writeString(this.phone);
        dest.writeString(this.map_address);
        dest.writeString(this.map);
        dest.writeString(this.grade);
        dest.writeString(this.content);
        dest.writeString(this.account);
        dest.writeString(this.money);
        dest.writeInt(this.status);
        dest.writeDouble(this.lng);
        dest.writeDouble(this.lat);
        dest.writeString(this.price);
        dest.writeString(this.ID_pic_1);
        dest.writeString(this.ID_pic_2);
        dest.writeString(this.isPay);
        dest.writeString(this.realname);
        dest.writeInt(this.isshow);
        dest.writeString(this.address);
        dest.writeString(this.province);
        dest.writeString(this.city);
        dest.writeString(this.county);
        dest.writeString(this.share_pic);
        dest.writeString(this.pic);
        dest.writeInt(this.pid);
        dest.writeString(this.desc);
        dest.writeDouble(this.distance);
        dest.writeInt(this.companyid);
        dest.writeInt(this.sou);
        dest.writeInt(this.sold);
        dest.writeStringList(this.qualification);
    }

    public CompanyDetailBean() {
    }

    protected CompanyDetailBean(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.categoryid = in.readString();
        this.uid = in.readInt();
        this.ID_number = in.readString();
        this.phone = in.readString();
        this.map_address = in.readString();
        this.map = in.readString();
        this.grade = in.readString();
        this.content = in.readString();
        this.account = in.readString();
        this.money = in.readString();
        this.status = in.readInt();
        this.lng = in.readDouble();
        this.lat = in.readDouble();
        this.price = in.readString();
        this.ID_pic_1 = in.readString();
        this.ID_pic_2 = in.readString();
        this.isPay = in.readString();
        this.realname = in.readString();
        this.isshow = in.readInt();
        this.address = in.readString();
        this.province = in.readString();
        this.city = in.readString();
        this.county = in.readString();
        this.share_pic = in.readString();
        this.pic = in.readString();
        this.pid = in.readInt();
        this.desc = in.readString();
        this.distance = in.readDouble();
        this.companyid = in.readInt();
        this.sou = in.readInt();
        this.sold = in.readInt();
        this.qualification = in.createStringArrayList();
    }

    public static final Parcelable.Creator<CompanyDetailBean> CREATOR = new Parcelable.Creator<CompanyDetailBean>() {
        @Override
        public CompanyDetailBean createFromParcel(Parcel source) {
            return new CompanyDetailBean(source);
        }

        @Override
        public CompanyDetailBean[] newArray(int size) {
            return new CompanyDetailBean[size];
        }
    };
}
